package com.shelpe.services.lexicon.repository.mongo;

import java.util.Date;
import java.util.List;

import org.springframework.data.domain.Sort;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.lexicon.entity.KeywordMetric;
import com.shelpe.services.lexicon.entity.Scope;

public interface KeywordMetricRepository extends PagingAndSortingRepository<KeywordMetric, String> {

	List<KeywordMetric> findByAdgroupRecordID(String recordID);
	
	int countByAdgroupRecordIDAndGlobalAndScopeEndTime(String recordID, boolean global, Date endTime);
}
